package com.second.oa.domain;
// default package

import java.util.HashSet;
import java.util.Set;


public class Department  implements java.io.Serializable {


    // Fields    

     private String id;
     private Department parent;
     private String code;
     private String name;
     private String remark;
     private Set departments = new HashSet(0);
     private Set employees = new HashSet(0);


    // Constructors

    /** default constructor */
    public Department() {
    }

	/** minimal constructor */
    public Department(String id) {
        this.id = id;
    }
    
    /** full constructor */
    public Department(String id, Department department, String code, String name, String remark, Set departments, Set employees) {
        this.id = id;
        this.parent = department;
        this.code = code;
        this.name = name;
        this.remark = remark;
        this.departments = departments;
        this.employees = employees;
    }

   
    // Property accessors

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }

    public Department getParent() {
        return this.parent;
    }
    
    public void setParent(Department department) {
        this.parent = department;
    }

    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Set getDepartments() {
        return this.departments;
    }
    
    public void setDepartments(Set departments) {
        this.departments = departments;
    }

    public Set getEmployees() {
        return this.employees;
    }
    
    public void setEmployees(Set employees) {
        this.employees = employees;
    }

	public Department(String id, Department department, String code,
			String name, String remark) {
		super();
		this.id = id;
		this.parent = department;
		this.code = code;
		this.name = name;
		this.remark = remark;
	}
}